package com.sqsf.cglib;
//cglib代理基于父类 创建的代理对象与目标对象拥有相同的父类(从父类继承方法)
public class CGLIBProxy extends CGLIBTarget{
    CGLIBTarget cglibTarget;

    public CGLIBProxy(CGLIBTarget cglibTarget) {
        this.cglibTarget = cglibTarget;
    }

    @Override
    public void run() {
        System.out.println("前置执行......");
        cglibTarget.run();
    }
}
